import { Navigate } from "react-router-dom";
import Channel from "../views/channel/Channel";
import Home from "../views/home/Home";
import Topic from "../views/topic/Topic";
import Category from '../views/category/Category'
import Car from '../views/car/Car'
import My from '../views/my/My'
import Search1 from "../views/search/Search";
import Detail from "../views/detail/Detail";
export const route = [
    {
        path:'/home',
        element:<Home></Home>
    },
    {
        path:'/topic',
        element:<Topic></Topic>
    },
    {
        path:'/category',
        element:<Category></Category>
    },
    {
        path:'/car',
        element:<Car></Car>
    },
    {
        path:'/my',
        element:<My></My>
    },
    {
        path:'/channel/:id',
        element:<Channel></Channel>
    },
    {
        path:'/detail/:id',
        element:<Detail></Detail>
    },
    {
        path:'/search',
        element:<Search1></Search1>
    },
    {
        path:'/',
        element:<Navigate to='/home'></Navigate>
    }
]